﻿@using App.Web.Utility;
@{
    String pageTitle = "Search Configuration";
    ViewBag.Title = "Re Index Search";
    App.Search.ReIndexResult _Result = ViewData[AppConstants.ViewDataKeys.SAVED] as App.Search.ReIndexResult; 
}
<div class="page-heading">
    <h1>@pageTitle</h1>
    <div>
        Manage and Configure Product and Category Searching
    </div>
</div>

@using (Html.BeginForm())
{
    <div class="GroupBox">
        @if (_Result != null)
        {
        <div>Deleted Index from DB: @_Result.DeletedIndexFromDB</div>
        <div>Deleted Index from Lucene: @_Result.DeletedIndexFromLucene</div>
        <div>Found Products for Re-Index: @_Result.FoundItems</div>
        <div>Successfully Indexed: @_Result.ReIndexedItems</div>
        }
        <input type="submit" value="Re Index Products" />
    </div>
}
